package com.oracle.properties;

import java.io.IOException;
import java.util.Properties;

public class PropertiesUtils {

    private Properties properties = new Properties();


    public void myInitMethod(){
        try {
            this.properties.load(PropertiesUtils.class.getResourceAsStream("/properties/admin-web.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public PropertiesUtils(Properties properties) {
        this.properties = properties;
    }

    public PropertiesUtils() {
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setValue(String key,String value){
        this.properties.setProperty(key,value);
    }

    public String getValue(String key){
        String value = this.properties.getProperty(key);
        return value;
    }


}
